import request from '@/router/axios';
import {downloadExcel} from '@/router/axios';
import {formatCondition} from '@/util/util';
//单条查询
export const queryBizSixteenUserAnswers = (params) => {
  params.head.transCode = 'queryBizSixteenUserAnswers';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/queryBizSixteenUserAnswers',
    method: 'post',
    data: params
  })
}
//多条列表查询，支持条件查询
export const queryBizSixteenUserAnswersListPage = (params) => {
  params.head.transCode = 'queryBizSixteenUserAnswersListPage';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/queryBizSixteenUserAnswersListPage',
    method: 'post',
    data: params
  })
}
//新增单条记录
export const saveBizSixteenUserAnswers = (params) => {
  params.head.transCode = 'saveBizSixteenUserAnswers';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/saveBizSixteenUserAnswers',
    method: 'post',
    data: params
  })
}
//新增多条记录
export const saveBizSixteenUserAnswersList = (params) => {
  params.head.transCode = 'saveBizSixteenUserAnswersList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/saveBizSixteenUserAnswersList',
    method: 'post',
    data: params
  })
}
//新增或修改单条记录
export const saveOrUpdateBizSixteenUserAnswers = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserAnswers';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/saveOrUpdateBizSixteenUserAnswers',
    method: 'post',
    data: params
  })
}


//新增或修改单条记录
export const saveOrUpdateBizSixteenUserAnswersList = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserAnswersList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/saveOrUpdateBizSixteenUserAnswersList',
    method: 'post',
    data: params
  })
}

//修改单条记录
export const updateBizSixteenUserAnswers = (params) => {
  params.head.transCode = 'updateBizSixteenUserAnswers';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/updateBizSixteenUserAnswers',
    method: 'post',
    data: params
  })
}

//删除单条记录
export const deleteBizSixteenUserAnswers = (params) => {
  params.head.transCode = 'deleteBizSixteenUserAnswers';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/deleteBizSixteenUserAnswers',
    method: 'post',
    data: params
  })
}

//删除多条记录
export const deleteBizSixteenUserAnswersList = (params) => {
  params.head.transCode = 'deleteBizSixteenUserAnswersList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnswers/deleteBizSixteenUserAnswersList',
    method: 'post',
    data: params
  })
}
//导出excel
export const exportBizSixteenUserAnswersExcel = (params) => {
  downloadExcel({
    url: '/biz/sixteen/bizSixteenUserAnswers/excelDownload/exportBizSixteenUserAnswersExcel',
    method: 'get',
    data: 
    {
      tenantId: params.head.tenantId,
      orders:'',
      condition: formatCondition(params.body.sqlCondition)
    }
  })
}
